import minRequest from '@/config/minRequest.js'
const url = '/customer'
/**
 * 企业信息
 */
// export const enterprise = (data) => minRequest.get('/company/getCompanyInfo', data)

/**
 * 企业信息(新)
 */
// export const enterprise = (tenantId) => minRequest.get(url + `/company/getCompanyInfoByTenantId/${tenantId}`)
export const enterprise = (tenantId) => minRequest.get(url + `/company/getCompanyInfoByTenantId/open/${tenantId}`)//24.11.4

/**
 * 企业信息
 */
export const noenterprise = (data) => minRequest.get(url + '/company/open/getCompanyInfoNoToken', data)


// 视频咨询列表
export const getVideoCounselling = (data) => minRequest.post(url + `/video_info_customer/open/pageVideoNoToken`, data)
// 视频咨询列表需要登录
export const getVideoCounsellingLogin = (data) => minRequest.post(url + `/video_info_customer/pageVideo`, data)

// 创建客户管理
export const followSalespersonsApi = (data) => minRequest.post(url + `/CustomerManageFor/createCustomerManage`, data)

// 客户管理-添加自己的客户
export const createSalesmanCustomerManage = (data) => minRequest.post(url + `/CustomerManageFor/createSalesmanCustomerManage`, data)

/**
 * 根据用户手机号获取id
 */
export const userIdByPhone = (data) => minRequest.get(url + '/customer/getCustomerByPhone', data)

// 业务员教程视频
export const teachPageVideo = (data) => minRequest.post(url + `/video_info_customer/teachPageVideo`, data)

// 资讯类型分类
export const videoTypeTree = (data) => minRequest.post(url + `/video_type_customer/open/getVideoTypeTree`, data)